package com.konke.smartpad_huahao.domain;

import com.konke.sdslibrary.model.UniformDeviceType;

import java.io.Serializable;

public class SimpleDevice implements Serializable {
    private String devId;
    private UniformDeviceType mDeviceType;

    public SimpleDevice() {
    }

    public SimpleDevice(String devId, UniformDeviceType deviceType) {
        this.devId = devId;
        mDeviceType = deviceType;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public UniformDeviceType getDeviceType() {
        return mDeviceType;
    }

    public void setDeviceType(UniformDeviceType deviceType) {
        mDeviceType = deviceType;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof SimpleDevice) {
            if (((SimpleDevice) obj).getDevId().equals(this.devId) && ((SimpleDevice) obj).mDeviceType.equals(this.mDeviceType)) {
                return true;
            }
        }
        return super.equals(obj);
    }
}
